package com.example.smartplay.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 邮箱
     */
    private String email;

    /**
     * 身份
     */
    private String level;

    // 关联学生id
    @TableField(fill = FieldFill.UPDATE)
    private Integer studentId;

    //社长id
    //设置更新时候 可以设置为null
    @TableField(fill = FieldFill.UPDATE)
    private Integer clubId;

    //用户角色
    private String role;

}
